package com.youlai.boot.system.mapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.common.annotation.DataPermission;
import com.youlai.boot.system.model.bo.BannerBO;
import com.youlai.boot.system.model.entity.Banner;
import com.youlai.boot.system.model.query.BannerPageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface BannerMapper extends BaseMapper<Banner> {
    /**
     * 获取用户分页列表
     *
     * @param page
     * @param queryParams 查询参数
     * @return
     */
//    @DataPermission(deptAlias = "a")
    Page<BannerBO> listPagedBanners(Page<BannerBO> page, BannerPageQuery queryParams);
    Page<BannerBO> listPaged2Banners(Page<BannerBO> page, BannerPageQuery queryParams);
}
